#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int a, b;
	cin >> a >> b;
	cout << a << "/" << (b < 0 ? "(" + to_string(b) + ")" : to_string(b)) << "=";
	if (b)
		cout << fixed << setprecision(2) << 1.0 * a / b;
	else
		cout << "Error";
	return 0;
}
